//
// Created by zhuzonghui on 2022/12/18.
//
#include "../../header/controller/AchievementController.h"
#include "../../header/service/AchievementService.h"

list<Achievement *> *getAchievementList(int subjectId) {
    return wzy_get_achievement_list(subjectId);
}

list<Achievement *> *getAchievementListByUsername(char *username) {
    return wzy_get_achievement_list_by_username(username);
}

list<Achievement *> *getAchievementListBySemesterId(int semesterId) {
    return wzy_get_achievement_list_by_semester_id(semesterId);
}

void addAchievement(Achievement *achievement) {
    wzy_add_achievement(achievement);
}

void deleteAchievement(int achievementId) {
    wzy_delete_achievement(achievementId);
}

